var hex = 'AA5504B10000B5'

let arr = []
var typedArray = new Uint8Array(hex.match(/[\da-f]{2}/gi).map(function (h) {
  arr.push(parseInt(h, 16)) 
}))


var buffer = Buffer.from(arr)
let str = buffer.toString('hex')
console.log(str)
